package model.characters;
/**
 * Responsavel por identificar instancia Jogador
 */
public class Player extends CharacterDecorator{

	public Player(CharacterInterface player) {
		super(player);
	}

	@Override
	public void update() {
		if(!isWalkingL() && !isWalkingR() && (!isRunning() || (isRunning()&&(!isWalkingL() && !isWalkingR()))) && !isJumping() && !isFalling() && !isLowered())
			setStateCode(getDirection());
		
		character.update();
	}

}
